import request from '@/utils/request'
import qs from 'qs';
export function fetchList(params) {
  return request({
    url:'/admin/member/getMemberList?pageNum=' + params.pageNum + '&pageSize=' + params.pageSize,
    method: 'post',
    data: params,//请求参数放请求体里
    headers: {
      'Content-type': 'application/json'
    }
  })
}

export function memberStatus(data) {
  // data = qs.stringify(data);
  return request({
    url: '/admin/member/updateMember',
    method: 'post',
    data: data,
    headers: {
      'Content-type': 'application/json'
    }
  })
}
